import { Component, Input } from '@angular/core';
import { UserService } from './user.service';
@Component({
  selector: 'my-app-title',
  templateUrl: './title.component.html'
})
export class TitleComponent {
  @Input() public subtitle = '';
  public title = 'Angular Modules';
  public user = '';

  constructor(userService: UserService) {
    this.user = userService.userName;
  }

}
